package com.atguigu.springcloud.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentService {

    @Autowired


    public String get_OK(Long id){
        return "请求OK 😀";
    }
    public String get_TimeOut(Long id) throws InterruptedException {
        Thread.sleep(4000);
        return "请求超时，超时时间：4s";
    }
}
